﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Fastyou.Silverlight.Demo
{
    public partial class Tooltip : UserControl
    {
        public Tooltip()
        {
            InitializeComponent();
        }

        private void Ellipse_MouseLeave(object sender, MouseEventArgs e)
        {
            this.tip.IsOpen = false; 

        }

        private void Ellipse_MouseMove(object sender, MouseEventArgs e)
        {
            this.tip.IsOpen = true;
            this.tip.HorizontalOffset = e.GetPosition(null).X ;
            this.tip.VerticalOffset = e.GetPosition(null).Y - 300;

        }
    }
}
